<link rel="stylesheet" type="text/css" href="../style/style.css">
<title>Laporan Pengobatan Karyawan</title>
<body class="contentlist">
<?
include("../lib/config.php");
$show	= $HTTP_GET_VARS['show'];

if($show == "bank"){
	$title = "Transfer Bank";
}
elseif($show == "restitusi"){
	$title = "Restitusi";
}
?>
<fieldset><legend><b>Laporan Pengobatan Karyawan - <?=$title?></b></legend>
<table width="100%" class="contentlist"> 
<?
	if($show == bank){
?>
 <tr>
  <td>
  <form action="rep_med_bank.php" method="get" target="_blank">
  &nbsp;&nbsp;Silahkan Pilih Periode Pengobatan untuk dicetak: <select name="periode">
  <?
  	// get periode
	$sql2 = mssql_query("SELECT Periode FROM MedicalRestitusiDetail GROUP BY Periode");
	while($row2 = mssql_fetch_array($sql2)){
		echo"<option value='$row2[Periode]'>$row2[Periode]</option>";
	}
  ?>
  </select><input type="submit" value="Preview" class="button"></form>
  </td>
 </tr>
<?
	}
	elseif($show = "restitusi"){
?>
 <tr>
  <td>
  <form action="rep_med_restitusi.php" method="get" target="_blank">
  &nbsp;&nbsp;Silahkan Pilih Jenis Restitusi Pengobatan untuk dicetak: <br>
  &nbsp;&nbsp;Jenis Restitusi: <select name="jenis">
  <option value="OB">Rawat Jalan</option>
  <option value="KC">Kaca Mata</option>
  <option value="RI">Rawat Inap</option>
  </select> 
  &nbsp;&nbsp;Periode: <select name="periode">
  <?
  	// get periode
	$sql2 = mssql_query("SELECT Periode FROM MedicalRestitusiDetail GROUP BY Periode");
	while($row2 = mssql_fetch_array($sql2)){
		echo"<option value='$row2[Periode]'>$row2[Periode]</option>";
	}
  ?>
  </select><input type="submit" value="Preview" class="button"></form>
  </td>
 </tr>
<?
	}
?>
</table>

<br><br><br>
<center>
<input type="button" value="Tutup" class="button" onClick="Javascript:window.close()">
<br /><br />
</center>